"""
doc
"""

from uuid import uuid4
from django.db import models
from django.utils import timezone


# Create your models here.
class BaseModel(models.Model):
    id = models.BigAutoField(primary_key=True)
    uuid = models.UUIDField(default=uuid4, editable=False)
    deleted = models.BooleanField(
        default=False,
    )
    created_at = models.DateTimeField(
        default=timezone.now,
    )
    updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        abstract = True
